package com.lixingqu.mvpdemo.ui.itemdrag;

import com.chad.library.adapter.base.BaseItemDraggableAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lixingqu.mvpdemo.R;

import java.util.List;

/**
 * Created by lixingqu on 2016/12/13.
 */

public class DragAdapter extends BaseItemDraggableAdapter<String, BaseViewHolder> {

    public DragAdapter(List<String> data) {
        super(R.layout.item_drag, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, String s) {
        baseViewHolder.setText(R.id.tv_item_drag, s);
    }
}
